
import pytest
from selenium import webdriver


@pytest.fixture(scope='module')
def driver():
    # 初始化环境
    driver = webdriver.Edge()
    # 窗口最大化
    driver.maximize_window()
    driver.implicitly_wait(20)
    # 打开登录页面
    driver.get('http://192.168.1.243/ecshop/')
    yield driver